<?php
/**
 * Created by PhpStorm.
 * User: bxm
 * Date: 2022/6/20
 * Time: 11:35
 */

namespace app\api\controller\common;


use app\api\controller\Base;
use app\common\model\AreaModel;
use think\Request;
use traits\controller\JumpTraits;
class AreaController extends  Base
{
    /**
     * 构造方法
     * @access public
     * @throws \Exception
     */
    public function __construct()
    {

        parent::__construct();
        $this->checkLogin();

    }
    use JumpTraits;
    public function areaList(Request $request){
        $param = $request->param();
//        $f_code = $param['f_code'] ?? 0;
        $res        = AreaModel::areaList();
        if ($res) {
            $this->result($res,'操作成功',1);
        }
        $this->result($res,'操作成功',0);
    }
}